package com.company.class7;

import com.company.class6.SetTest;

/**
 * @Classname Mainargs
 * @Description 类型说明
 * @Date 2022/5/1 17:25
 * @Created by zbw
 */

public class Mainargs {
    public static void main(String[] args) throws InterruptedException {

//        SetTest.main(new String[]{"3","4"});
        System.out.println(args.length);
        System.out.println(args[0]);
        Thread.sleep(5000);
        System.out.println(args[1]);

        try {
            int i = Integer.parseInt(args[0]);
            System.out.println(i+"是数字");
        } catch (NumberFormatException e) {
//            e.printStackTrace();
            System.out.println(args[0]+"不是数字");
        }
    }
}
